package com.qd.common.panda.domain.entity.space;

import com.cdqidi.util.page.BaseQuery;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * 车位租赁信息,业主端显示
 *
 * @author sjk
 */
@EqualsAndHashCode(callSuper = true)
@Getter
@Setter
public class OwnerParkSpaceDTO extends BaseQuery {

    /**
     * 主键
     */
    private String sid;
    /**
     * 可租赁开始时间
     */
    private String leasableStartDate;
    /**
     * 可租赁结束时间
     */
    private String leasableEndDate;
    /**
     * 可租赁开始时间
     */
    private String leasableStartHour;
    /**
     * 可租赁结束时间
     */
    private String leasableEndHour;
    /**
     * 租赁类型
     */
    private String leaseType;
    /**
     * 租赁烈性显示
     */
    private String leaseTypeDisplay;
    /**
     * 扣费后的总收益
     */
    @JsonIgnore
    private BigDecimal deductionTotalRevenue;
    /**
     * 预期日收益
     */
    @JsonIgnore
    private BigDecimal expectedDayRevenue;
    /**
     * 预期总收益
     */
    @JsonIgnore
    private BigDecimal expectedTotalRevenue;
    /**
     * 分成比例
     */
    @JsonIgnore
    private Double shareRatio;
    /**
     * 租赁天数
     */
    @JsonIgnore
    private Integer days;
    /**
     * 状态:1运行中2停运中3已租赁
     */
    private Integer state;
    /**
     * 状态显示
     */
    private String stateDisplay;
    /**
     * 停车场ID
     */
    private String parkId;
    /**
     * 停车场ID显示
     */
    private String parkIdDisplay;
    /**
     * 停车场地址
     */
    private String address;
    /**
     * 所在地区
     */
    private String region;
    /**
     * 车位位置说明
     */
    private String note;
    /**
     * 是否结束
     */
    private String end;
    /**
     * 是否结束显示
     */
    private String endDisplay;
    /**
     * 是否发布
     */
    private String isPublish;
    /**
     * 是否发布显示
     */
    private String isPublishDisplay;
    /**
     * 租赁开始时间
     */
    private String startDate;
    /**
     * 租赁结束时间
     */
    private String endDate;
    /**
     * 下单时间
     */
    private String orderTime;
    /**
     * 承租人的车牌号
     */
    private String tenantNumber;
    /**
     * 租赁ID
     */
    private String id;
    /**
     * 车位号
     */
    private String spaceNumber;
    /**
     * 熊猫泊车车位号
     */
    private String sysSpaceNumber;

    @Override
    public void freeData() {
        this.sid = null;
        this.leasableStartDate = null;
        this.startDate = null;
        this.leasableEndDate = null;
        this.endDate = null;
        this.leasableStartHour = null;
        this.leasableEndHour = null;
        this.leaseType = null;
        this.leaseTypeDisplay = null;
        this.deductionTotalRevenue = null;
        this.expectedDayRevenue = null;
        this.expectedTotalRevenue = null;
        this.shareRatio = null;
        this.days = null;
        this.state = null;
        this.stateDisplay = null;
        this.parkId = null;
        this.parkIdDisplay = null;
        this.region = null;
        this.address = null;
        this.isPublish = null;
        this.isPublishDisplay = null;
        this.id = null;
        this.orderTime = null;
        this.spaceNumber = null;
        this.sysSpaceNumber = null;
        super.freeData();
    }
}
